﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ConfiguationManagement;
using DataComminucation;
using XmlDataComminucation;

namespace ConfigurationFactory
{
    public abstract class DataComminucationFactory
    {
        public static IParametersSetupDataAccess GetParametersSetupDataAccess()
        {
            IParametersSetupDataAccess userDataAccess = null;
            DataBase db = CfgManager.GetDataBase();
            switch (db)
            {
                case DataBase.XML:
                    userDataAccess = new XmlParametersSetupDataAccess();
                    break;
                case DataBase.SqlServer:
                    break;
                case DataBase.Oracle:
                    break;
                default:
                    break;
            }
            return userDataAccess;
        }
    }
}
